/**
 * 
 */
package com.feib.stms.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;


import com.feib.stms.dao.UploadFileActionLogDao;
import com.feib.stms.model.UploadFile;
import com.feib.stms.model.UploadFileActionLog;
import com.feib.stms.service.UploadFileActionLogService;

/**
 * @author Jeff Gu
 *
 */
@Service("uploadFileActionLogService")
public class UploadFileActionLogServiceImpl implements UploadFileActionLogService {
	
	
	@Resource(name="uploadFileActionLogDao")
    private UploadFileActionLogDao uploadFileActionLogDao;


	
	public int addUploadFileActionLog(UploadFileActionLog uploadFileActionLog) {
		
		return uploadFileActionLogDao.insert(uploadFileActionLog);
	}




	public List<UploadFileActionLog> findUploadFileActionLog(UploadFile uploadFile) {
		
		return uploadFileActionLogDao.queryUploadFileActionLog(uploadFile);
	}


	public int countUploadFileActionLog(Long uploadFilePk,List<String> action ,Long userPk) {
		
		return uploadFileActionLogDao.countUploadFileActionLog( uploadFilePk, action ,userPk);
	}

}
